﻿@model InfoSource.Models.Views.ManageDoNotMarketListViewModel


@{
    Layout = "";
    
    if(Model.PrintOutputType == "excel"){
        Response.ContentType = "application/vnd.ms-excel";
        Response.AddHeader("Content-Disposition", "attachment; filename=DoNotMarketList.xls");
    }
}

<table border="1">
@foreach (InfoSource.Data.Do_Not_Market_List zipcode in Model.ZipCodes)
{
    <tr>
        <td>
            @zipcode.colorado_zipcode.FirstOrDefault().zip
        </td>
        <td>
            @zipcode.colorado_zipcode.FirstOrDefault().city
        </td>
    </tr>
}
</table>
